﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.ServiceModel.Web;
using System.Text;
using DBO.Economy;
using BusinessManagement.Economy;
using DBO.Utility;
using SOAPPlayerService.Data;
using DBO;

namespace SOAPPlayerService
{
    [ServiceContract]
    public interface ISOAPPlayerService
    {
        [OperationContract]
        Resources GetPlayerResources(string token);

        [OperationContract]
        bool BuySlot(string token, string type);

        [OperationContract]
        bool SellSlot(string token, string type);

        [OperationContract]
        int CountSlots(string token, string type);

        [OperationContract]
        RequestResponse OpenSession(PLICCredentials creds);

        [OperationContract]
        bool RefreshSession(string token);

        [OperationContract]
        void CloseSession(string token);

        [OperationContract]
        RequestResponse CreateUser(string mail, PLICCredentials Creds, string race);

        [OperationContract]
        RequestResponse RegeneratePass(string login, string mail);

        [OperationContract]
        Player GetPlayerInfo(string token);

        [OperationContract]
        string[] GetSquad(string token, int points);
        
        [OperationContract]
        void SetSquad(string token, string[] squad, int points);
    }
}
